package com.example.springLearning.part12.config;

import com.alibaba.excel.util.IoUtils;
import org.apache.tomcat.util.http.fileupload.IOUtils;

import javax.servlet.*;
import java.io.IOException;

public class ReadBodyFilter implements Filter {

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        String requestBody = "";
       // requestBody = IOUtils.class.toString(request.getInputStream(), "utf-8");
        System.out.println(requestBody);
        chain.doFilter(request, response);
    }
}
